package domoticus;


public class TemperatureSensor extends Sensor{
	
	String value;
        private final String data ="Temperature";
	private Boolean state;
	DBConnectionCon con;
	

	public TemperatureSensor(DBConnectionCon con) {
		super();
                this.con = con;
		
	}
	
	public String getValue() {
		return value;
	}

	
	public Boolean getState() {
		
		return state;
	}

	
   
	public String getCurrentValue(String userName,Integer feedId) {
		
           
		value = con.getCurrentValue(userName, feedId, data);
                return value;
	}
	
	
	

}
